package com.oneguy.db;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by ZuoShu on 16/12/2.
 */
@Entity
@Table(name = "UserInfo", schema = "", catalog = "")
public class UserInfoEntity {
    private Integer userAid;
    private Integer userGuid;
    private String name;
    private String ip;
    private String playerNowScore;
    private String playerNowPutScore;
    private String playerPutScore;
    private String playerGetScore;
    private String playerShootingTime;
    private String playerMaxScore;
    private String playerDeadTime;
    private String playerGunScore;
    private String playerLostScore;
    private String playerRegulation;
    private Integer maxHitCount;

    @Basic
    @Column(name = "UserAID", nullable = true)
    public Integer getUserAid() {
        return userAid;
    }

    public void setUserAid(Integer userAid) {
        this.userAid = userAid;
    }

    @Basic
    @Column(name = "UserGUID", nullable = true)
    public Integer getUserGuid() {
        return userGuid;
    }

    public void setUserGuid(Integer userGuid) {
        this.userGuid = userGuid;
    }

    @Basic
    @Column(name = "name", nullable = true, length = 0)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "IP", nullable = true, length = 0)
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    @Basic
    @Column(name = "playerNowScore", nullable = true, length = 0)
    public String getPlayerNowScore() {
        return playerNowScore;
    }

    public void setPlayerNowScore(String playerNowScore) {
        this.playerNowScore = playerNowScore;
    }

    @Basic
    @Column(name = "playerNowPutScore", nullable = true, length = 0)
    public String getPlayerNowPutScore() {
        return playerNowPutScore;
    }

    public void setPlayerNowPutScore(String playerNowPutScore) {
        this.playerNowPutScore = playerNowPutScore;
    }

    @Basic
    @Column(name = "playerPutScore", nullable = true, length = 0)
    public String getPlayerPutScore() {
        return playerPutScore;
    }

    public void setPlayerPutScore(String playerPutScore) {
        this.playerPutScore = playerPutScore;
    }

    @Basic
    @Column(name = "playerGetScore", nullable = true, length = 0)
    public String getPlayerGetScore() {
        return playerGetScore;
    }

    public void setPlayerGetScore(String playerGetScore) {
        this.playerGetScore = playerGetScore;
    }

    @Basic
    @Column(name = "playerShootingTime", nullable = true, length = 0)
    public String getPlayerShootingTime() {
        return playerShootingTime;
    }

    public void setPlayerShootingTime(String playerShootingTime) {
        this.playerShootingTime = playerShootingTime;
    }

    @Basic
    @Column(name = "playerMaxScore", nullable = true, length = 0)
    public String getPlayerMaxScore() {
        return playerMaxScore;
    }

    public void setPlayerMaxScore(String playerMaxScore) {
        this.playerMaxScore = playerMaxScore;
    }

    @Basic
    @Column(name = "playerDeadTime", nullable = true, length = 0)
    public String getPlayerDeadTime() {
        return playerDeadTime;
    }

    public void setPlayerDeadTime(String playerDeadTime) {
        this.playerDeadTime = playerDeadTime;
    }

    @Basic
    @Column(name = "playerGunScore", nullable = true, length = 0)
    public String getPlayerGunScore() {
        return playerGunScore;
    }

    public void setPlayerGunScore(String playerGunScore) {
        this.playerGunScore = playerGunScore;
    }

    @Basic
    @Column(name = "playerLostScore", nullable = true, length = 0)
    public String getPlayerLostScore() {
        return playerLostScore;
    }

    public void setPlayerLostScore(String playerLostScore) {
        this.playerLostScore = playerLostScore;
    }

    @Basic
    @Column(name = "playerRegulation", nullable = true, length = 0)
    public String getPlayerRegulation() {
        return playerRegulation;
    }

    public void setPlayerRegulation(String playerRegulation) {
        this.playerRegulation = playerRegulation;
    }

    @Basic
    @Column(name = "maxHitCount", nullable = true)
    public Integer getMaxHitCount() {
        return maxHitCount;
    }

    public void setMaxHitCount(Integer maxHitCount) {
        this.maxHitCount = maxHitCount;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UserInfoEntity that = (UserInfoEntity) o;

        if (userAid != null ? !userAid.equals(that.userAid) : that.userAid != null) return false;
        if (userGuid != null ? !userGuid.equals(that.userGuid) : that.userGuid != null) return false;
        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        if (ip != null ? !ip.equals(that.ip) : that.ip != null) return false;
        if (playerNowScore != null ? !playerNowScore.equals(that.playerNowScore) : that.playerNowScore != null)
            return false;
        if (playerNowPutScore != null ? !playerNowPutScore.equals(that.playerNowPutScore) : that.playerNowPutScore != null)
            return false;
        if (playerPutScore != null ? !playerPutScore.equals(that.playerPutScore) : that.playerPutScore != null)
            return false;
        if (playerGetScore != null ? !playerGetScore.equals(that.playerGetScore) : that.playerGetScore != null)
            return false;
        if (playerShootingTime != null ? !playerShootingTime.equals(that.playerShootingTime) : that.playerShootingTime != null)
            return false;
        if (playerMaxScore != null ? !playerMaxScore.equals(that.playerMaxScore) : that.playerMaxScore != null)
            return false;
        if (playerDeadTime != null ? !playerDeadTime.equals(that.playerDeadTime) : that.playerDeadTime != null)
            return false;
        if (playerGunScore != null ? !playerGunScore.equals(that.playerGunScore) : that.playerGunScore != null)
            return false;
        if (playerLostScore != null ? !playerLostScore.equals(that.playerLostScore) : that.playerLostScore != null)
            return false;
        if (playerRegulation != null ? !playerRegulation.equals(that.playerRegulation) : that.playerRegulation != null)
            return false;
        if (maxHitCount != null ? !maxHitCount.equals(that.maxHitCount) : that.maxHitCount != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = userAid != null ? userAid.hashCode() : 0;
        result = 31 * result + (userGuid != null ? userGuid.hashCode() : 0);
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (ip != null ? ip.hashCode() : 0);
        result = 31 * result + (playerNowScore != null ? playerNowScore.hashCode() : 0);
        result = 31 * result + (playerNowPutScore != null ? playerNowPutScore.hashCode() : 0);
        result = 31 * result + (playerPutScore != null ? playerPutScore.hashCode() : 0);
        result = 31 * result + (playerGetScore != null ? playerGetScore.hashCode() : 0);
        result = 31 * result + (playerShootingTime != null ? playerShootingTime.hashCode() : 0);
        result = 31 * result + (playerMaxScore != null ? playerMaxScore.hashCode() : 0);
        result = 31 * result + (playerDeadTime != null ? playerDeadTime.hashCode() : 0);
        result = 31 * result + (playerGunScore != null ? playerGunScore.hashCode() : 0);
        result = 31 * result + (playerLostScore != null ? playerLostScore.hashCode() : 0);
        result = 31 * result + (playerRegulation != null ? playerRegulation.hashCode() : 0);
        result = 31 * result + (maxHitCount != null ? maxHitCount.hashCode() : 0);
        return result;
    }
}
